﻿#ifndef APPUPDATEREQ_H
#define APPUPDATEREQ_H

#include "BaseMsg.h"

#define MSG_TYPE_APP_UPDATE_REQ "AppUpdateReq"

typedef enum
{
    AppUpdateReqTag_app = 1,

    AppUpdateReqTag_fileName = 2,

    AppUpdateReqTag_fileData = 3,

} AppUpdateReqTag;


class AppUpdateReq : BaseMsg
{
public:
    AppUpdateReq();

    ~AppUpdateReq();

    int decodeParametersFromTlv(TLV* tlv);

    int encodeParametersIntoTlvs(list<TLV *> & tlvs);

    SString app;

    SString fileName;

    byte * fileData;

    int fileLen;
};

#endif // APPUPDATEREQ_H
